count (one's) lucky stars

Translations
быть благодарным за удачу
After narrowly avoiding the accident, she counted her lucky stars.
После того как она едва избежала аварии, она была благодарна за удачу.
Definitions
To be very grateful or thankful for good fortune or a favorable outcome, often in situations where things could have gone badly.
Words
star

noun
звезда
count

verb
считать
lucky

adjective
удачливый